package org.mg.engine.core;

import java.io.IOException;
import java.net.Socket;

/**
 * Create by bo.chen in 2018/10/13 下午4:18
 */
public abstract class SessionAbstract implements Session{

    /**
     *  socket对象
     */
    protected Socket socket;

    @Override
    public boolean isConnect() {
        try {
            socket.sendUrgentData(0xFF);
            return true;
        } catch (IOException e) {
            e.printStackTrace();
        }
        return false;
    }
}